module Mux3to1_3bit(Input0,Input1,Input2,Output,Selectorbus);

input Input0,Input1,Input2;
input [2:0]Selectorbus;
output reg Output;

always @(Selectorbus[0] or Selectorbus[1] or Selectorbus[2]) begin
if(Selectorbus==3'b000) begin
Output=Input0;
end
if(Selectorbus==3'b001) begin
Output=Input1;
end
if(Selectorbus==3'b010) begin
Output=Input2;
end
end

endmodule
